/*
 * @Author: GY19531 418941369@qq.com
 * @Date: 2022-09-05 14:39:54
 * @LastEditors: GY19531 418941369@qq.com
 * @LastEditTime: 2022-09-05 20:37:14
 * @FilePath: \one-web\src\pages\RemindManage\common\useContext.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React, { Dispatch } from 'react';
export interface IUpdateContext {
  prefixCls: string;
  curRes: Record<string, any>;
  scheduleInfo: Record<string, any>;
  reloadScheduleInfo: () => void;
  locationID: string;
  scheduleInfoLoading: boolean;
  updateDispath: Dispatch<any>;
  leftSelectKeys: string[];
  leftExpandedKeys: string[];
  leftAutoExpandParent: boolean;
  centreUserRows: Record<string, any>[];
  leftSelectKeysCopy: string[];
  leftExpandedKeysCopy: string[];
  centreUserRowsCopy: Record<string, any>[];
  deptUserList: Record<string, any>;
  deptUserListCopy: Record<string, any>;
  joinCheckBoxKeys: string[];
  copyCheckBoxKeys: string[];
  joinCheckBoxRows: Record<string, any>[];
  copyCheckBoxRows: Record<string, any>[];
  saveUserList: Record<string, any>[];
  saveUserListCopy: Record<string, any>[];
  locationPageType: boolean;
  userLoading: boolean;
  scheduleTimeProps: Record<string, any>;
}
const initRemindPeopleContext: IUpdateContext = {
  prefixCls: 'schedule-update-',
  curRes: {},
  scheduleInfo: {},
  reloadScheduleInfo: () => { },
  locationID: '',
  scheduleInfoLoading: false,
  updateDispath: () => { },
  leftSelectKeys: [],
  leftExpandedKeys: [],
  leftAutoExpandParent: false,
  centreUserRows: [],
  leftSelectKeysCopy: [],
  leftExpandedKeysCopy: [],
  centreUserRowsCopy: [],
  deptUserList: {},
  deptUserListCopy: {},
  joinCheckBoxKeys: [],
  copyCheckBoxKeys: [],
  joinCheckBoxRows: [],
  copyCheckBoxRows: [],
  saveUserList: [],
  saveUserListCopy: [],
  locationPageType: false,
  userLoading: false,
  scheduleTimeProps: {},
};


/**创建上下文*/
const RemindPeopleContext = React.createContext(initRemindPeopleContext)
/** 导出上下文 */
/**导出*/
export { RemindPeopleContext }


